package com.foxzzz.graph;


import com.foxzzz.base.ArrayUtil;
import com.foxzzz.base.GenUtil;

import java.util.*;

public class Solution802 {
    public List<Integer> eventualSafeNodes(int[][] graph) {
        List<Integer> res = new LinkedList<>();
        Set<Integer> visit = new HashSet<>();

        for (int i = 0; i < graph.length; i++) {
            int[] ints = graph[i];
            if (ints.length == 0) {
                res.add(i);
            }
        }
        for (int i = 0; i < graph.length; i++) {
            int[] ints = graph[i];
            for (int j = 0; j < ints.length; j++) {


            }
        }

        return null;
    }

    public static void main(String[] args) {
        System.out.println(new Solution802().eventualSafeNodes(null));
    }
}
